<template>
  <div>
  <!-- v-model 绑定组件 实际上是给子组件绑定value和给子组件绑定input事件 -->


    <!-- <MyProduct 
    title="肯德基"
    info="疯狂星期四"
    :value="price"
    @input="price=$event"
     /> -->
       <MyProduct 
    title="肯德基"
    info="疯狂星期四"
    v-model="price"
     />
  </div>
</template>

<script>

// 引入
import MyProduct from './components/MyProduct.vue'

export default {
  name: 'VueDay4App',
 // 注册
 components: {
  MyProduct
 },
  data() {
    return {
      price:68
      
    };
  },

  mounted() {
    
  },

  methods: {
    
  },
};
</script>

<style lang="scss" scoped>

</style>